__autho__ = 'pengfeifu'

a = 102
b = 20
lists = [1, 2, 3, 4, 12, 3, 12, 10, 20]

print("a与b", a & b)
print("a and b", a and b)  # 布尔"与" , 如果 x 为 False，x and y 返回 False，否则它返回 y 的计算值。
print("a或b", a | b)
print("a异或b", a ^ b)
print("非a", ~b)

if a in lists:
    print("a is in list")
else:
    print("not in list")


x, y = 10, 20
x, y = y, x + y + 30
x, y = y, x
print(x, y)
